]> dgit.raspbian.org Git - gnome-shell.git/commit
overview: Start animation after setting coverPane initial state
authorAlessandro Bono <alessandro.bono369@gmail.com>
Sun, 6 Nov 2022 11:17:15 +0000 (12:17 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 25 Nov 2022 15:19:37 +0000 (15:19 +0000)
commitcf47b4a34733d8be29a49eca46abca0c4b94b44c
treee0c3049eeb283b64902754e3be925f5e93145337
parentf23ca85f795f0f4affd3e0ec014977c33bcff49b
overview: Start animation after setting coverPane initial state

Since commit 7bd98f3f5fb7e0d1220646b8a4ee7073534a8e8f the onComplete callback
is called right away when animations are disabled. As side effect, now
this._coverPane gets shown/hidden in the wrong order. Start the animation after
setting this._coverPane initial state, so that the animation callback can set the
this._coverPane final state without it being overwritten later.

Move the animation also after emitting the showing and hiding signals. So that the
order showing -> shown and hiding -> hidden is still preserved when animations are
disabled.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6096
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2532>
js/ui/overview.js